﻿namespace AnyOffice.Model
{
    using System;

    public class UrlData
    {
        protected object _url;
        protected object _urlDesc;
        protected int _urlId = -1;
        protected object _urlNo;
        protected object _userId;

        public string Url
        {
            get
            {
                return (string) this._url;
            }
            set
            {
                this._url = value;
            }
        }

        public string UrlDesc
        {
            get
            {
                return (string) this._urlDesc;
            }
            set
            {
                this._urlDesc = value;
            }
        }

        public bool UrlDescIsNull
        {
            get
            {
                return (this._urlDesc == null);
            }
            set
            {
                if (value)
                {
                    this._urlDesc = null;
                }
            }
        }

        public int UrlId
        {
            get
            {
                return this._urlId;
            }
            set
            {
                this._urlId = value;
            }
        }

        public bool UrlIsNull
        {
            get
            {
                return (this._url == null);
            }
            set
            {
                if (value)
                {
                    this._url = null;
                }
            }
        }

        public int UrlNo
        {
            get
            {
                return (int) this._urlNo;
            }
            set
            {
                this._urlNo = value;
            }
        }

        public bool UrlNoIsNull
        {
            get
            {
                return (this._urlNo == null);
            }
            set
            {
                if (value)
                {
                    this._urlNo = null;
                }
            }
        }

        public string UserId
        {
            get
            {
                return (string) this._userId;
            }
            set
            {
                this._userId = value;
            }
        }

        public bool UserIdIsNull
        {
            get
            {
                return (this._userId == null);
            }
            set
            {
                if (value)
                {
                    this._userId = null;
                }
            }
        }
    }
}

